package java_objects.method_arguments;

public class SwapString {

	String x = "10";
	String y = "20";

	void swap(String a, String b) {
		String temp;
		temp = a;
		a = b;
		b = temp;
	}
	void swapTest() {
		swap(x, y);
		System.out.printf("x = %s, y = %s\n", x, y);
	}

	public static void main(String[] args) {
		new SwapString().swapTest();
	}
}
